// There   are   apples;   oranges   and   peaches   on   the   table.

let str = 'There   are   apples;   oranges   and   peaches   on   the   table.   ';
str.toLowerCase()
    .replace(/\W/ig, ' ')
    .trim()
    .split(/\s+/ig)
    .forEach(word => {
    console.log(word);
});